<style>    
    #testFileInput2{
        height: 30px; width: 102px; margin-left: 128px;
    }
    #preview1, #topPhpto
        {  
            width:150px;  
            padding-left: 65px;padding-top: 15px; border-top-width: 5px;
            //height:150px;  
        }
</style>
<div class="pageContent">	
    <form method="post" action="__CONTROLLER__/show_e?callbackType=closeCurrent" id="myForm" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">        
        <div class="pageFormContent" layoutH="58">            
            <div class="unit">
                <label>考核季度：</label>
                <select name="quarter" class='required' style="width: 101px;" id='select_'> 
                    <option value="Q1">Q1</option>
                    <option value="Q2">Q2</option>
                    <option value="Q3">Q3</option>
                    <option value="Q4">Q4</option>
                </select>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="button" id='sub'>提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>	
</div>
<script>
    $(function(){
        $("#sub").click(function(){
            var quarter =$("#select_  option:selected").val();          
            $.post("__CONTROLLER__/ajaxIs_set",{quarter:quarter},function(data){
                if(data==1){
                    alert("本季度考核已经存在");
                    return false;
                }else if(data==2){
                    $("#myForm").submit();
                }
            });
        });
    });
    
</script>
